package com.anyisn.anyflickr.shell.controller
{
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import com.anyisn.anyflickr.shell.model.PeopleProxy;
	
	public class TagAddCommand extends SimpleCommand
	{
		override public function execute(notification:INotification) : void {
			var name:String = notification.getBody() as String;
			var peopleP:PeopleProxy = facade.retrieveProxy(PeopleProxy.NAME) as PeopleProxy;
			peopleP.addTag(name);
		}
	}
}